package ooday03;

public class PersonTest {
    public static void main(String[] args) {
        //---第一遍---
        //学生对象
        Student zs = new Student("张三",30,"石家庄","中班","110399");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        //老师对象
        Teacher ls = new Teacher("李四",33,"东北",20000);
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();

        //医生对象
        Doctor ww = new Doctor("王五",22,"成都","开刀的");
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();

        //----第二题----
        //学生对象
//        Student zz = new Student("智障",20,"柏林","大班","95615");
//        zz.eat();
//        zz.sleep();
//        zz.sayHi();
//        zz.study();
//
//        //老师对象
//        Teacher lj = new Teacher("老九",21,"吉林",50000);
//        lj.eat();
//        lj.sleep();
//        lj.sayHi();
//        lj.teach();
//
//        //医生对象
//        Doctor lsy = new Doctor("老十一",50,"陕西","教授");
//        lsy.eat();
//        lsy.sleep();
//        lsy.sayHi();
//        lsy.cut();

    }
}
